← Index
NYTProf Performance Profile   
For /usr/share/koha/opac/cgi-bin/opac/opac-search.pl
  Run on Tue Oct 15 17:10:45 2013
Reported on Tue Oct 15 17:12:50 2013

Filename(eval 1049)[/usr/share/perl/5.10/CGI.pm:869]
StatementsExecuted 94 statements in 665µs
Eval Invoked At/usr/share/perl/5.10/CGI.pm line 869
Sibling evals1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
131052.93ms4.19msCGI::::cookieCGI::cookie
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
# spent 4.19ms (2.93+1.26) within CGI::cookie which was called 13 times, avg 323µs/call: # 2 times (81µs+104µs) by CGI::Session::load at line 707 of CGI/Session.pm, avg 93µs/call # 2 times (63µs+92µs) by C4::Auth::ParseSearchHistoryCookie at line 1791 of /usr/share/koha/lib/C4/Auth.pm, avg 77µs/call # 2 times (51µs+88µs) by C4::Templates::getlanguage at line 331 of /usr/share/koha/lib/C4/Templates.pm, avg 70µs/call # once (2.51ms+373µs) by C4::Templates::getlanguage at line 832 of CGI.pm # once (49µs+240µs) by C4::Auth::checkauth at line 811 of /usr/share/koha/lib/C4/Auth.pm # once (28µs+137µs) by main::RUNTIME at line 648 of /usr/share/koha/opac/cgi-bin/opac/opac-search.pl # once (58µs+95µs) by C4::Auth::get_template_and_user at line 366 of /usr/share/koha/lib/C4/Auth.pm # once (39µs+61µs) by main::RUNTIME at line 130 of /usr/share/koha/opac/cgi-bin/opac/opac-search.pl # once (33µs+49µs) by C4::Auth::checkauth at line 708 of /usr/share/koha/lib/C4/Auth.pm # once (17µs+23µs) by main::RUNTIME at line 691 of /usr/share/koha/opac/cgi-bin/opac/opac-search.pl
package CGI; sub cookie {
21374µs1399µs my($self,@p) = self_or_default(@_);
# spent 99µs making 13 calls to CGI::self_or_default, avg 8µs/call
313136µs13429µs my($name,$value,$path,$domain,$secure,$expires,$httponly) =
# spent 429µs making 13 calls to CGI::Util::rearrange, avg 33µs/call
4 rearrange([NAME,[VALUE,VALUES],PATH,DOMAIN,SECURE,EXPIRES,HTTPONLY],@p);
5
613230µs require CGI::Cookie;
7
8 # if no value is supplied, then we retrieve the
9 # value of the cookie, if any. For efficiency, we cache the parsed
10 # cookies in our state variables.
111310µs unless ( defined($value) ) {
121199µs11208µs $self->{'.cookies'} = CGI::Cookie->fetch
# spent 208µs making 11 calls to CGI::Cookie::fetch, avg 19µs/call
13 unless $self->{'.cookies'};
14
15 # If no name is supplied, then retrieve the names of all our cookies.
161183µs return () unless $self->{'.cookies'};
17 return keys %{$self->{'.cookies'}} unless $name;
18 return () unless $self->{'.cookies'}->{$name};
19 return $self->{'.cookies'}->{$name}->value if defined($name) && $name ne '';
20 }
21
22 # If we get here, we're creating a new cookie
2322µs return undef unless defined($name) && $name ne ''; # this is an error
24
252800ns my @param;
2624µs push(@param,'-name'=>$name);
2722µs push(@param,'-value'=>$value);
2821µs push(@param,'-domain'=>$domain) if $domain;
292700ns push(@param,'-path'=>$path) if $path;
302700ns push(@param,'-expires'=>$expires) if $expires;
312700ns push(@param,'-secure'=>$secure) if $secure;
3222µs push(@param,'-httponly'=>$httponly) if $httponly;
33
34219µs2215µs return new CGI::Cookie(@param);
# spent 215µs making 2 calls to CGI::Cookie::new, avg 108µs/call
35}
36
37;